#!/bin/bash
CURRENT=$(cd `dirname $0`; pwd)
IP=`ifconfig labornet | grep "inet addr:" | awk '{print $2}' | cut -c 6-`
source /opt/ros/kinetic/setup.bash 
source /root/catkin_ws/devel/setup.bash
export ROS_MASTER_URI=http://$IP:11311/
export ROS_IP=$IP
cd $CURRENT
rm slam.log
stdbuf -oL roslaunch $CURRENT/camera_nav.launch &> $CURRENT/slam.log
#roslaunch $CURRENT/slam.launch >>$CURRENT/slam.log
